
// MainFrm.h : interface of the CMainFrame class
//

#pragma once
#include "PanePropertyGrid.h"

//CXTPPropertyGrid& GetPropertyGrid(CWnd* pFrame = 0);

class CMainFrame : public CXTPMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:
	
	//CXTPDockingPaneManager m_paneManager;
	//CXTPDockingPaneManager* GetDockingPaneManager() {
	//	return &m_paneManager;
	//}	
	//CPanePropertyGrid m_panePropertyGrid;
// Operations
public:
// Overrides
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar        m_wndStatusBar;

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	
	afx_msg LRESULT OnGridNotify(WPARAM wParam, LPARAM lParam);
	//afx_msg LRESULT OnDockingPaneNotify(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

//public:
//
//	// GetPropertyGrid
//	inline CXTPPropertyGrid& GetPropertyGrid(CWnd* pFrame)
//	{
//		if (pFrame == 0) pFrame = AfxGetMainWnd();
//		return ((CMainFrame*)pFrame)->m_panePropertyGrid.m_wndPropertyGrid;
//	}
};


